import http from "./request"

// 根据层数id查询宿舍
export const getRoomByStoreyIdApi = async parm => {
    return await http.get('/api/room/getRoomByStoreyId', parm)
}

// 保存分配的宿舍信息
export const assignSaveBedApi = async parm => {
    return await http.post('/api/assign/assignSaveBed', parm)
}

// 获取对应班级的宿舍信息和对应的床位信息
export const getAssignBedListApi = async parm => {
    return await http.get('/api/assign/getAssignBedList', parm)
}

// 删除床位
export const deleteAssignApi = async parm => {
    return await http.delete('/api/assign', parm)
}

// 学生查询宿舍列表
export const getRoomByClassIdApi = async parm => {
    return await http.get('/api/assign/getRoomByClassId', parm)
}

// 保存选择宿舍
export const saveSelectBedApi = async parm => {
    return await http.post('/api/stuBed/selectBedSave', parm)
}

// 清空班级对应的宿舍
export const cleanBedApi = async parm => {
    return await http.post('/api/assign/cleanBed', parm)
}